#include <gtest/gtest.h>
#include <list>

void print() {}

// 数量不定的模板参数
template<typename T, typename... Types>
void print(const T &first_arg, const Types &... args) {
    std::cout << first_arg << "\n" << sizeof...(args) << std::endl;
    print(args...);
}

template<typename ... Types>
void print(const Types &...args) {

}

TEST(VARIADIC_TEMPLATE, TEMPLATE) {
    print(7.5, "hello", std::bitset<16>(377), 43);

    // auto
    auto P = [](int i) -> void {
        printf("%d\n", i);
    };
    P(1);

    std::list<std::string> c;
    
}
